package com.cskaoyan.controller;

import com.cskaoyan.bean.BaseRespVo;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * @author stone
 * @date 2022/09/01 17:47
 */
@RestController
@RequestMapping("user")
public class UserController {

    /*@RequestMapping("register1")
    public BaseRespVo register1(HttpServletRequest request) {
        String username = request.getParameter("username");
        String password = request.getParameter("password");
        String age = request.getParameter("age");
        int i = Integer.parseInt(age);
        return BaseRespVo.ok();
    }*/

    @RequestMapping("register1")
    public BaseRespVo register1(String username,String password,Integer age) {
        return BaseRespVo.ok();
    }
}
